Skip to content

Conversation

mrijkeboer
Copy link

@mrijkeboer mrijkeboer commented Apr 21, 2017

This adds the following decoders:

  • decodeUtf16LE'
  • decodeUtf16BE'
  • decodeUtf32LE'
  • decodeUtf32BE'

- decodeUtf16LE'
- decodeUtf16BE'
- decodeUtf32LE'
- decodeUtf32BE'
@bos
Copy link
Contributor

bos commented Aug 8, 2017

These seem like good ideas, but I have two observations.

The names aren't exactly self-documenting :-)

The implementations seem a bit unnatural. Basically if you're round-tripping through unsafePerformIO . try . evaluate, maybe the underlying primitives have the wrong return types?

@mrijkeboer
Copy link
Author

The code is based on the already provided decodeUtf8' function. I tried to keep it as consistent with the existing code as possible.

@Bodigrim Bodigrim marked this pull request as draft February 28, 2023 18:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants